﻿Public Class ChiTietDTO
    '	MaCT int primary key identity(1,1),
    'MaHD int,
    'MaMenu int,
    'Soluong int,
    'DonGia money,
    'TongTien money,    
    Private _iMaCT As Integer
    Private _iMaHD As Integer
    Private _iMaMenu As Integer
    Private _iSoLuong As Integer
    Private _dDonGia As Double
    Private _dTongTien As Double

#Region "Khởi tạo"
    Public Sub New(ByVal MaCT As Integer, ByVal MaHD As Integer, ByVal MaMenu As Integer, ByVal SoLuong As Integer, ByVal DonGia As Double, ByVal TongTien As Double)
        _iMaCT = MaCT
        _iMaHD = MaHD
        _iMaMenu = MaMenu
        _iSoLuong = SoLuong
        _dDonGia = DonGia
        _dTongTien = TongTien
    End Sub
#End Region

#Region "Get & Set"

    Public Property MaCT
        Get
            Return _iMaCT
        End Get
        Set(ByVal value)
            _iMaCT = value
        End Set
    End Property

    Public Property MaHD
        Get
            Return _iMaHD
        End Get
        Set(ByVal value)
            _iMaHD = value
        End Set
    End Property

    Public Property MaMenu
        Get
            Return _iMaMenu
        End Get
        Set(ByVal value)
            _iMaMenu = value
        End Set
    End Property

    Public Property SoLuong
        Get
            Return _iSoLuong
        End Get
        Set(ByVal value)
            _iSoLuong = value
        End Set
    End Property

    Public Property DonGia
        Get
            Return _dDonGia
        End Get
        Set(ByVal value)
            _dDonGia = value
        End Set
    End Property

    Public Property TongTien
        Get
            Return _dTongTien
        End Get
        Set(ByVal value)
            _dTongTien = value
        End Set
    End Property
#End Region

End Class
